#include <iostream>
using namespace std;
#include "stack.h"

int main(int argc, char** argv) 
{

	Stack<double> doubleStack(5);
	double doubleValue = 1.1;
	
	cout << "pushing elements into doubleStack." << "\n";
	while( doubleStack.push(doubleValue) )
	{
		cout << doubleValue << " ";
		doubleValue += 1.1;
	}
	cout << "doubleStack is full." << "\n"; 
	
	cout << "Poping elements out of doubleStack." << "\n";
	while( doubleStack.pop(doubleValue))
	{
		cout << doubleValue << " ";
	}
	cout << "doubleStack is empty." << "\n";
	

	Stack<int> intStack;
	int intValue = 1;
	
	cout << "pushing elements into intStack." << "\n";
	while( intStack.push(intValue) )
	{
		cout << intValue << " ";
		intValue++;
	}
	cout << "intStack is full." << "\n"; 
	
	cout << "Poping elements out of intStack." << "\n";
	while( intStack.pop(intValue))
	{
		cout << intValue << " ";
	}
	cout << "intStack is empty." << "\n";
	
	return 0;
}
